typedef enum play_state { PLAY, WAIT, STOP, NEXT_STEP, PREVIOUS_STEP, 
	REV_PLAY, MOVE_START_POS, MOVE_END_POS, NEXT_PLAY, PREVIOUS_REV_PLAY, FF_PLAY, REV_FF_PLAY, NON_PLAY, EXIT_PLAY} PLAY_STATE;

struct play_info {
        char path[512];
        char file_name[4][512];
	FILE* f[4];
        int cur_pos[4];	// hour*3600 + min*60 + sec
        int frame_count[4];
	int year;
	int mon;
	int day;
	int hour[4];
	int min[4];
	int sec[4];
	PLAY_STATE state[4];
};

void hunter_parse_date(char *text, int* year, int* mon, int* day);
char* get_file_name(int cam_num, char* index_file);
int set_file_info(GtkCList* file_list, unsigned int start, unsigned int end);
int move_start_pos(FILE* f, int* pos);
int move_previous_pos(FILE* f, int* pos);
int move_end_pos(FILE* f, int* pos);
int move_next_pos(FILE* f, int* pos);
